//
//  moneyDetialCell.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/5/21.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "moneyDetialCell.h"

@implementation moneyDetialCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(moneyDetialModel *)model {
    _model = model;
    if ([_model.type isEqualToString:@"account"]) {
        self.title_lab.text = @"还款";
    }else if ([_model.type isEqualToString:@"buyOff"]) {
        self.title_lab.text = @"直接购买";
    }else if ([_model.type isEqualToString:@"recharge"]) {
        self.title_lab.text = @"充值";
    }else if ([_model.type isEqualToString:@"cash"]) {
        self.title_lab.text = @"提现";
    }
    self.time_lab.text = [NSString ConvertStrToTime:_model.createDate];
    if ([_model.status isEqualToString:@"0"]) {
        self.moneyChange_lab.text = [NSString stringWithFormat:@"+%@", _model.money];
    }else {
        self.moneyChange_lab.text = [NSString stringWithFormat:@"-%@", _model.money];
    }
}
@end
